// 判断当前设备类别
var u = navigator.userAgent, app = navigator.appVersion;
window.isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
window.isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端

function GetQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.href.split('?')[1];
     if (r) {
     	var d = r.match(reg);
     	if(d!=null)return  unescape(d[2]); return '';
     }else{
     	 return ''
     }
     
     
}

window.shopId = GetQueryString('shopId');
window.marketId = GetQueryString('marketId');

window.token = GetQueryString('AutobotsToken');